home *** CD-ROM | disk | FTP | other *** search
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; SCUMNUKE.PPE by Drew [PWA]
- ; Last updated: 12-3-94
- ;
- ; DESCRIPTION: This is a front-end to SCuM-NuKeR for use with EFLAG. Other
- ; nukers should work in a similar manner with EFLAG, where they
- ; should be written to expect the filename as a parameter.
- ;
- ; INSTALLATION: Put SCUMNUKE.PPE and USERS.CFG into the **SAME DIRECTORY** as
- ; SCuM-NuKeR.
- ;
- ; CONFIGURATION: Edit USERS.CFG to include the names of the users you wish
- ; to allow nuke capabilities. One user name per line only.
- ; Next, go to where EFLAG is installed and edit PROMPT1.CFG,
- ; PROMPT2.CFG, or both. This is your choice and depends on
- ; where you want to install it. Typically, you will probably
- ; just want to install it off of PROMPT2.
- ;
- ; Increase the number of commands and add the appropriate lines
- ; for EFLAG to make a call to SCUMNUKE.PPE. For example:
- ;
- ; @X08Nuke@X07 <- unhighlighted text for EFLAG
- ; @X4FNUKE@X07 <- highlighted text for EFLAG
- ; N <- hotkey inside of EFLAG
- ; !C:\PPE\EFLAG\SCUMNUKE.PPE <- call to SCUMNUKE.PPE
- ;
- string filename
- string line
- boolean allowed
-
- ; first check to see if a filename was passed to EFNUKE. if not, something
- ; is messed up inside of EFLAG (read: you must have modified something you
- ; probably should not have)
- ;
- if (tokcount() < 1) then
- println "@X0CError: No filename passed to SCUMNUKE. Aborting.@X07"
- delay 25
- newline
- end
- else
- filename = gettoken()
- endif
-
-
- ; now check if the user online is even allowed to nuke files
- ;
- allowed = FALSE
- if (exist(ppepath() + "USERS.CFG")) then
- getuser
- fopen 5, ppepath() + "USERS.CFG", O_RD, S_DW
- fget 5, line
- while (!ferr(5)) do
- if (upper(line) == upper(u_name())) then
- allowed = TRUE
- break
- endif
- fget 5, line
- endwhile
- fclose 5
- endif
-
- if (allowed == FALSE) then
- println "@X0CSorry, you are not allowed to nuke files.@X07"
- delay 25
- newline
- end
- endif
-
-
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; the code down here is pretty much exactly from the modified FLAG.PPS source
- ; included with SCuM-NuKeR.
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- GETUSER
- IF (READLINE ((READLINE (PPEPATH()+"FLAG.CFG",PCBNODE()))+"FNUKE."+STRING(PCBNODE()),1) <> U_NAME()) do
- IF (EXIST(READLINE (PPEPATH()+"FLAG.CFG",PCBNODE()))+"FNUKE."+STRING(PCBNODE())) DELETE (READLINE (PPEPATH()+"FLAG.CFG",1))+"FNUKE."+STRING(PCBNODE())
- FAPPEND 6,(READLINE (PPEPATH()+"FLAG.CFG",PCBNODE()))+"FNUKE."+STRING(PCBNODE()),O_RW,S_DN
- FPUTLN 6,U_NAME()
- FCLOSE 6
- ENDIF
- FAPPEND 6,(READLINE (PPEPATH()+"FLAG.CFG",PCBNODE()))+"FNUKE."+STRING(PCBNODE()),O_RW,S_DN
- FPUTLN 6,filename
- FCLOSE 6
- PRINTLN "@X0CFile flagged for nuking! Don't forget to run NUKER!@X07"
- DELAY 25
- NEWLINE
-